package com.vip.shopdao.action.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.vip.shopbase.Domain.BaseEntity;


import javax.persistence.*;
import java.util.List;

/**
 * @author yln
 */
@Entity
public class Action extends BaseEntity<Long> {

    @Column
    private String name;
    @Column
    private String description;
    @Column
    private Double point;

    @JsonIgnoreProperties("actions")
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "actionKind_id")
    private ActionKind actionKind;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getPoint() {
        return point;
    }

    public void setPoint(Double point) {
        this.point = point;
    }

    public ActionKind getActionKind() {
        return actionKind;
    }

    public void setActionKind(ActionKind actionKind) {
        this.actionKind = actionKind;
    }

}
